<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        function __autoload($cls) {
            require $cls . '.php';
        }
        $cat = new category();
        $a =$cat->getCategories();
        echo "<pre>";
        print_r($a);
        foreach ($a as $key=>$value){
            echo $value['name'];
        }
        $b = $cat->getSubCategories();
        foreach ($b as $key=>$value){
            echo $value['cname1'];
        }
        ?>
    </body>
</html>
